﻿<%@ page title="" language="C#" masterpagefile="~/master/amc_app.master" autoeventwireup="true" inherits="pages_testpg, App_Web_pzmkbaed" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript">
    $(document).ready(function () {
        $('#txtAmcInvoiceNo').val(genDynmID());
        $('#txtInvoiceDt').datepicker({ dateFormat: "mm/dd/yy" }).datepicker("setDate", new Date());
        $('#txtWarrantyFrom').datepicker({ changeYear: true, changeMonth: true, dateFormat: "MM yy" });
        $('#expiryDate').datepicker({ changeYear: true, changeMonth: true, dateFormat: "MM yy" });
        disableTextbox();
    });
    function onChangeWarranty() {
        var warnty = $('#selWarrantyPeriod').val();
        var wardate = $('#txtAMCInvoiceDate').val();
        var d = wardate.split('/');
        var yy = parseInt(d[2]) + parseInt(warnty);
        $('#expiryDate').val(d[0] + "/" + d[1] + "/" + yy);

    }
    function fntest() {
        //var expiry = 
        
    }
</script>
<script src="../_scripts/app/addcustomer.js" type="text/javascript"></script>
    <link href="../App_Themes/main/addcustomer.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/main/PredSrhChgLoc.css" rel="stylesheet" type="text/css" />
    <script src="../_scripts/app/predictiveSrchProduct.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="addCustomerFormContainer">
        <div class="addCustomerFormRowText" style="margin-top:10px;">
            AMC Details
            </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText"><span style="color:Red;">*</span>Invoice No.</span>
            <div class="addCustomerFormInputDiv"><input id="txtAmcInvoiceNo" disabled="disabled" type="text" class="addCustomerFormInput" /></div>
            </div>  
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText"><span style="color:Red;">*</span>Invoice Date</span>
            <div class="addCustomerFormInputDiv"><input id="txtInvoiceDt" type="text" class="addCustomerFormInput" disabled="disabled" />
            </div>
        </div>          
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText"><span style="color:Red;">*</span>Warranty From</span>
            <div class="addCustomerFormInputDiv"><input id="txtWarrantyFrom" type="text" class="addCustomerFormInput" disabled="disabled" />
            <span id="dateEnable" class="amcInvoiceEditDate" onclick="enableTextbox();">Edit Date</span>
            <span id="dateDisable" class="amcInvoiceEditDate" onclick="disableTextbox();">Disable</span>
            </div>
            <%--<span class="addCustomerFormText">Warranty</span>
            <div class="addCustomerFormInputDiv">
            <select id="selWarrantyPeriod" class="addCustomerFormInput" onchange="onChangeWarranty();">
                    <option value="0" selected="selected">Please Select</option>
                    <option value="1">1 Year</option>
                    <option value="2">2 Years</option>
                    <option value="3">3 Years</option>
                    <option value="4">4 Years</option>
                    <option value="5">5 Years</option>
                </select>
            </div>--%>
        </div>
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText">Expiry Date</span>
            <div class="addCustomerFormInputDiv"><input id="expiryDate" type="text" class="addCustomerFormInput"/></div>
            <span class="addCustomerFormText">Payment Mode</span>
            <div class="addCustomerFormInputDiv">
                <input type="radio" id="rbtnCash" name="paymode" value="Cash" class="formRadioBtn" checked="checked" />
                <label for="rbtnCash" class="formRadioLabel">Cash</label>
                <input type="radio" id="rbtnCheque" name="paymode" value="Cheque" class="formRadioBtn" />
                <label for="rbtnCash" class="formRadioLabel">Cheque</label>
                <input type="radio" id="rbtnOthers" name="paymode" value="Others" class="formRadioBtn" />
                <label for="rbtnCash" class="formRadioLabel">Others</label>
            </div>
        </div> 
        <div class="addCustomerFormRow">
            <span class="addCustomerFormText">AMC Rate</span>
            <div class="addCustomerFormInputDiv"><input id="txtAMCRate" type="text" class="addCustomerFormInput" />
            <span style="color: #ABABAB;float: left;font-size: 10px;">Enter the AMC rate for one year</span>
            </div>
        </div>
    </div>
    <div class="addCustomerFormButtonContainer" style="width:95%;margin-right: 30px;">
        <div class="adminColorButton" style="float:right;" onclick="saveAMCDetails();">Save & Preview</div>
        <div class="adminGrayButton" style="float:right;">Cancel</div>
    </div>
<asp:HiddenField ID="hidAMCGuid" runat="server" />
</asp:Content>

